package freespiritsocial.io.user.data.model.bean

data class People(
    val followers: Int?,
    val userAvatar: String?,
    val userId: String?,
    val userName: String?
) {
    val followerStr: String
        get() = when {
            followers == null -> "0"
            followers >= 1000 -> "${followers.div(1000L)} k"
            followers >= 1000_000 -> "${followers.div(1000_000)} m"
            else -> followers.toString()
        } + " ${if (followers ?: 0 <= 1) "follower" else "followers"}"
}